package com.jnevision.clockin.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jnevision.clockin.model.AttendanceRecordVO;
import com.jnevision.clockin.model.ClockIn;
import com.jnevision.common.CommonQuery;

/**
 * <p>
 * 工作打卡记录 Mapper 接口
 * </p>
 *
 * @author gavin
 * @since 2019-07-13
 */
@Mapper
public interface ClockInMapper extends BaseMapper<ClockIn> {
    IPage<ClockIn> page(Page<ClockIn> page, @Param("userId") String userId, String start, String end);

    IPage<AttendanceRecordVO> attendanceRecord(Page<AttendanceRecordVO> page, @Param("query") CommonQuery query);

    IPage<ClockIn> recordDetail(Page<ClockIn> page, @Param("query") CommonQuery query);
}
